#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    vector<int> runningSum(vector<int>& nums)
    {
        int lens = nums.size();
        int sum = 0;
        vector<int> v;
        for (int i = 0; i < lens; i++)
        {

			sum = sum+nums[i];
			v.push_back(sum);
        }
        return v;
    }
};

int main()
{
    vector<int> v1={1,2,3,4};
    vector<int> v2={1,1,1,1,1};
    vector<int> v3={3,1,2,10,1};
    Solution s;
    s.runningSum(v3);
    return 0;
}
